package com.example.myapplication6.bean;

import android.support.annotation.Nullable;
public class FlavorActivity {
        private String size;
        private String sugar;
        private String temperature;
        Flavor(String size, String sugar, String temperature)
        {
            this.size = size;
            this.sugar = sugar;
            this.temperature = temperature;
        }

        @Override
        public String toString()
        {
            String s = size+"，"+sugar+"，"+temperature;
            return s;
        }

        @Override
        public boolean equals(@Nullable Object obj) {
            return this.toString().equals(((Flavor)obj).toString());
        }

        public String getSize() {
            return size;
        }
    }
}
